<template>
  <view class="webview-container">
    <web-view :src="webUrl" />
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
const webUrl = ref('');

onLoad((options) => {
  webUrl.value = decodeURIComponent(options.url || '');
});
</script>

<style>
.webview-container {
  width: 100vw;
  height: 100vh;
  background: #fff;
}
</style> 